import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const drivingCycleTbApi = {
    // 添加行驶工况特性曲线table数据 @author wuhq
    addDrivingCycleTb: (data) => {
        return postAxios('/drivingCycleTb/add', data);
    },
    // 分页查询行驶工况特性曲线table数据 @author wuhq
    queryDrivingCycleTb: (data) => {
        return postAxios('/drivingCycleTb/page/query', data);
    },
    // 批量删除行驶工况特性曲线table数据 @author wuhq
    batchDeleteDrivingCycleTb: (idList) => {
        return postAxios('/drivingCycleTb/deleteByIds', idList);
    },
    // 修改行驶工况特性曲线table数据  @author wuhq
    updateDrivingCycleTb: (data) => {
        return postAxios('/drivingCycleTb/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/drivingCycleTb/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/drivingCycleTb/export/batch', idList);
    },

  getByDrivingCycleId: (id) => {
    return getAxios(`/drivingCycleTb/getByDrivingCycleId/${id}`);
  },
};
